﻿const express = require('express');
const app = express();
const path = require('path');
const cors = require('cors');

//解决跨域
app.use(cors())

//静态资源托管
app.use(express.static(path.join(__dirname, 'build')))
//路由


//监听10004
app.listen(10004);